#define MAX_CHAR_DEV 32
typedef struct char_dev {
	u32int (*read)(u32int, u32int , char *);
	u32int (*write)(u32int, u32int , char *);
	u8int used;
	u8int locked;
} cdev_t;

struct char_ioreq {
	u32int off;
	u32int len;
	char *buf;
};
